package com.yuan.base.service.api;

import lombok.Getter;

/**
 * @author lintiangang
 * @description BaseErrorCode
 * @date 2021/3/25 3:42 下午
 **/
@Getter
public enum BaseErrorCode implements IErrorCode {
    BAD_REQUEST_CODE(400, "错误请求"), UNKNOWN_ERROR(500, "服务器发生未知错误")
    ;

    private final int code;

    private final String message;


    BaseErrorCode(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
